package com.lywz.biz.common.entity.city;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

import com.lywz.core.entity.AbstractEntity;
import com.lywz.core.entity.EntityAnnotation;

/**
 * TCityTraffic entity.
 * 
 * @author xichao.zhou
 */
@Entity
@Table(name = "T_City_Traffic")
@NamedQueries({
        @NamedQuery(name = "cityTraffic.list", query = "from CityTraffic ct order by ct.cityId"),
        @NamedQuery(name = "cityTraffic.one", query = "from CityTraffic ct where ct.cityId = :cityId")
})
@EntityAnnotation
public class CityTraffic extends AbstractEntity {

    private static final long serialVersionUID = -8676397951852999803L;

    private Short id;

    private Short cityId;

    private String cityName;

    //市外交通信息
    private String outsideDescription;

    //市内交通信息
    private String insideDescription;

    //交通提示
    private String tips;

    // Constructors

    /** default constructor */
    public CityTraffic() {
    }

    // Property accessors
    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "id", unique = true, nullable = false)
    public Short getId() {
        return this.id;
    }

    public void setId(Short id) {
        this.id = id;
    }

    @Column(name = "city_id", nullable = false)
    public Short getCityId() {
        return this.cityId;
    }

    public void setCityId(Short cityId) {
        this.cityId = cityId;
    }

    @Column(name = "city_name", nullable = false, length = 30)
    public String getCityName() {
        return this.cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    @Column(name = "outside_description", nullable = false, length = 1000)
    public String getOutsideDescription() {
        return this.outsideDescription;
    }

    public void setOutsideDescription(String outsideDescription) {
        this.outsideDescription = outsideDescription;
    }

    @Column(name = "inside_description", nullable = false, length = 1000)
    public String getInsideDescription() {
        return this.insideDescription;
    }

    public void setInsideDescription(String insideDescription) {
        this.insideDescription = insideDescription;
    }

    @Column(name = "tips", nullable = false, length = 1000)
    public String getTips() {
        return this.tips;
    }

    public void setTips(String tips) {
        this.tips = tips;
    }

}
